var runtime.gomaxprocs
25 uses
runtime (current package)
debug.go#L22: ret := int(gomaxprocs)
metrics.go#L443: out.scalar = uint64(gomaxprocs)
mgc.go#L671: work.stwprocs, work.maxprocs = gomaxprocs, gomaxprocs
mgc.go#L698: gcController.startCycle(now, int(gomaxprocs), trigger)
mgc.go#L935: gcController.endCycle(now, int(gomaxprocs), work.userForced)
mgc.go#L1218: for gcBgMarkWorkerCount < gomaxprocs {
mgcpacer.go#L706: if gomaxprocs <= 1 {
mgcpacer.go#L715: id := int32(fastrandn(uint32(gomaxprocs - 1)))
mgcscavenge.go#L413: return gomaxprocs
mstats.go#L625: for i := 0; i < int(gomaxprocs); i++ {
mstats.go#L957: s.totalTime = sched.totaltime + (now-sched.procresizetime)*int64(gomaxprocs)
proc.go#L1364: sched.stopwait = gomaxprocs
proc.go#L1443: procs := gomaxprocs
proc.go#L1768: sched.safePointWait = gomaxprocs - 1
proc.go#L2709: if sched.npidle.Load() == gomaxprocs-1 && sched.lastpoll.Load() != 0 {
proc.go#L2994: if mp.spinning || 2*sched.nmspinning.Load() < gomaxprocs-sched.npidle.Load() {
proc.go#L5187: old := gomaxprocs
proc.go#L5311: var int32p *int32 = &gomaxprocs // make compiler check that gomaxprocs is an int32
proc.go#L5552: if debug.schedtrace <= 0 && (sched.gcwaiting.Load() || sched.npidle.Load() == gomaxprocs) {
proc.go#L5554: if sched.gcwaiting.Load() || sched.npidle.Load() == gomaxprocs {
proc.go#L5805: print("SCHED ", (now-starttime)/1e6, "ms: gomaxprocs=", gomaxprocs, " idleprocs=", sched.npidle.Load(), " threads=", mcount(), " spinningthreads=", sched.nmspinning.Load(), " needspinning=", sched.needspinning.Load(), " idlethreads=", sched.nmidle, " runqueue=", sched.runqsize)
proc.go#L5999: n := sched.runqsize/gomaxprocs + 1
proc.go#L6615: if i >= active_spin || ncpu <= 1 || gomaxprocs <= sched.npidle.Load()+sched.nmspinning.Load()+1 {
runtime2.go#L1142: gomaxprocs int32
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |